<?php
class MY_Input extends CI_Input {
	
	
	function save_query($query_array) {
		
		$CI =& get_instance();
		
		$CI->db->insert('ci_query', array('query' => http_build_query($query_array)));
		
		return $CI->db->insert_id();
	}
	
	function load_query($query_id) {
		
		$CI =& get_instance();
		
	    return $CI->db->where('id',$query_id)->get('ci_query')->row(0);

		
	}
	
}
